home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_13_10 / jagger / printf2.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-25  |  448 b   |  24 lines

  1. /* Listing 6, printf.h, version 2 */
  2. #ifndef PRINTF_H
  3. #define PRINTF_H
  4.  
  5. #ifndef NDEBUG
  6.  
  7. #ifdef printf
  8. #undef printf
  9. #endif
  10. #define printf (*Ptr_printf(__FILE__, \
  11.                 STRx2(__LINE__)))
  12.  
  13. #define STRx2(tokens) STRx1(tokens)
  14. #define STRx1(tokens) #tokens
  15.  
  16. typedef int 
  17. PrintfLike(const char format[], ...);
  18. PrintfLike * Ptr_printf(const char file[], 
  19.                         const char line[]);
  20.  
  21. #endif /* NDEBUG */
  22. #endif /* PRINTF_H */
  23.  
  24.